package com.hsq.ndmall.wx.feign.goods;

import com.hsq.ndmall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @author 黄四清
 * @version 1.0.0
 * @ClassName GoodsDetailFeign.java
 * @Description TODO 商品详情
 * @createTime 2021年08月16日 09:54:00
 */
@FeignClient(value = "product-service")
public interface GoodsDetailFeign {
    @GetMapping("/product/goods/info/{id}")
    R info(@PathVariable("id") Integer id);

    @GetMapping("product/goodsattribute/list")
    R goodsattributeList(@RequestParam Map<String, Object> params);

    @GetMapping("/product/brand/list")
    R brandList(@RequestParam Map<String, Object> params);

    @GetMapping("/product/goodsspecification/list")
    R specificationList(@RequestParam Map<String, Object> params);

    @GetMapping("/product/goodsproduct/list")
    R goodsProductList(@RequestParam Map<String, Object> params);

    @GetMapping("/product/comment/list")
    R commentList(@RequestParam Map<String, Object> params);

    @GetMapping("/product/goods/list")
    R goodsList(@RequestParam Map<String, Object> params);
}
